package com.aboverock.module.system.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.aboverock.module.system.domain.Log;
import com.aboverock.module.system.domain.StatisticalResult;
import com.aboverock.module.system.enums.StatisticalUnit;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Rock Wang
 * @since 2018-10-30
 */
public interface LogMapper extends BaseMapper<Log> {
    
    /**
     * 统计系统使用信息.
     *
     * @param startTime the start time
     * @param unit the unit
     * @return the use statistical info
     */
    public List<StatisticalResult> getUseStatisticalInfo(@Param("startTime") Long startTime,
            @Param("unit") StatisticalUnit unit);

}
